package org.jeecg.modules.ncmeapis.processTest.processDefinition.overtime;

import ncme.digital.hszy.ep.ProcessDefinition;
import ncme.digital.hszy.ep.pre.EndNode;
import ncme.digital.hszy.ep.pre.StartNode;
import org.jeecg.modules.ncmeapis.processTest.processDefinition.commonNodes.DeanApproveNode;
import org.jeecg.modules.ncmeapis.processTest.processDefinition.commonNodes.GroupLeaderApprove;
import org.jeecg.modules.ncmeapis.processTest.processDefinition.commonNodes.RecordEventNode;
import org.jeecg.modules.ncmeapis.processTest.processDefinition.overtime.nodes.ApplyOvertime;

//@Component
public class OvertimeProcess extends ProcessDefinition {

    @Override
    public String description(StartNode processNode) {
        return "加班申请流程";
    }

    @Override
    public EndNode define(StartNode start) {
        return start.link(ApplyOvertime.class)
                .link(GroupLeaderApprove.class)
                .link(DeanApproveNode.class)
                .link(RecordEventNode.class)
                .end();
    }

}
